<style>

    input[type="file"] {
        position: absolute;
        top: 0;
        opacity: 0;
        width: 100px;
        height: 35px;
        left: 15px;
    }
    label{
        font-weight: normal;
        margin-right: 20px;
    }

    .row{margin-bottom: 20px}
    th.packages{
       width: 20%;
        word-break: break-all;
    }
    th.doctors{
        width: 15%;
        word-break: break-all;
    }
</style>
<section class="content">
    <div class="table-box">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>序号</th>
                <th>封面</th>
                <th>套餐名</th>
                <th class="packages">服务项目</th>
                <th>售价</th>
                <th>充值金额</th>
                <th>支付类别</th>
                <th>有效期</th>
                <th>状态</th>
                <th class="doctors">医生归属</th>
                <th>操作</th>

            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="n in goodsList" data-detail="{{n}}">
                <td>{{$index+1}}</td>
                <td>
                    <img ng-src="{{basePictureUrl + n.coverUrl}}" alt="" width="80px" height="50px" err-src="./img/img-cover.png">
                </td>
                <td>{{n.name}}</td>
                <td>
                    <span ng-repeat="s in n.packages">
                        <span>{{s.name}} &emsp;</span>
                    </span>
                </td>
                <td>{{n.actualPrice | currency:"￥"}}</td>
                <td>{{n.rechargePrice | currency:"￥"}}</td>
                <td>
                    <span ng-if="n.payType=='1'" >一阶段</span>
                    <span ng-if="n.payType=='2'" >二阶段</span>
                </td>
                <td>{{n.liveTime || 0}}月</td>
                <td>
                    <span ng-if="n.status=='1'" style="color:green">上架</span>
                    <span ng-if="n.status=='0'" style="color:red">下架</span>
                </td>
                <td>
                    <span ng-repeat="s in n.doctorList" ng-if="n.doctorList.length>0"  >
                        <span>{{s.userName}} &emsp;</span>
                    </span>
                    <span ng-if="n.doctorList.length<=0">
                        <span>无</span>
                    </span>
                </td>
                <td>
                    <!--<a  ng-click="showDetail($event)" href="javascript:;" data-toggle="modal" data-target="#myModal" data-rowId="{{n.wxGoodsId}}" data-packages="{{n.packages}}" data-department="{{n.department}}">查看并编辑详情</a>-->
                    <a href="javascript:;" ui-sref="package/packageDetail({wxGoodsId:{{n.wxGoodsId}}})">编辑</a> |
                    <a href="javascript:;" ng-if="n.status=='1'"  data-id={{n.wxGoodsId}} data-status="{{n.status}}" ng-click="updateWxGoodsStatus($event)">下架</a>
                    <a href="javascript:;" ng-if="n.status=='0'"  data-id={{n.wxGoodsId}} data-status="{{n.status}}" ng-click="updateWxGoodsStatus($event)">上架</a> |
                    <a href="javascript:;"  data-id={{n.wxGoodsId}} ng-click="getQRcode($event)">二维码</a> |
                    <a href="javascript:;"  data-id={{n.wxGoodsId}} ng-click="getfuQRcode($event)">随访二维码</a> |

                    <a href="javascript:;"  data-id={{n.wxGoodsId}} ng-click="deleteWxGoods($event)">删除</a>
                </td>
            </tr>
            <tr ng-if="goodsList.length<0">
                <td colspan="6" class="text-center">暂无数据</td>
            </tr>

            </tbody>
        </table>
        <div class="page-function" ng-if="goodsList.length>0">
        </div>
    </div>

</section>